#ifndef __IAP_SPROM_H
#define __IAP_SPROM_H

#ifdef __cplusplus
extern "C"
{
#endif  /* #ifdef __cplusplus */

/* Includes ------------------------------------------------------------------*/
#include "MS51_16K.H"

/* Exported types ------------------------------------------------------------*/
extern unsigned char xdata IAPSPDataBuf[127];

/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void Erase_SPROM(void);
void Erase_Verify_SPROM(unsigned int u16IAPDataSize);
void Program_SPROM(unsigned int u16IAPDataSize);
void Read_Verify_SPROM(unsigned int u16IAPDataSize);

#ifdef __cplusplus
}
#endif  /* #ifdef __cplusplus */
#endif  /* #ifndef __IAP_SPROM_H */
